<!--
 * @Description: 
 * @Version: 2.0
 * @Autor: jrq
 * @Date: 2023-07-02 15:54:32
 * @LastEditors: jrq
 * @LastEditTime: 2023-07-06 16:29:47
-->
<template>
  <div class="error-404">
    <h1>Oops!</h1>
    <p>The page you requested could not be found.</p>
    <div class="animation">
      <span style="--i: 1;"></span>
      <span style="--i: 2;"></span>
      <span style="--i: 3;"></span>
      <span style="--i: 4;"></span>
      <span style="--i: 5;"></span>
    </div>
  </div>
</template>

<script lang="ts">
import { T_srv, vue } from '@/services';

@T_srv.comp
export default class Error404 extends vue {}
</script>

<style scoped>
.error-404 {
  text-align: center;
  padding: 50px;
}

h1 {
  font-size: 60px;
  margin-bottom: 20px;
}

p {
  font-size: 30px;
}

.animation {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  margin-top: 50px;
}

.animation span {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 0 5px;
  border-radius: 50%;
  animation-name: bounce;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-delay: calc(var(--i) * 0.1s);
}

.animation span:nth-child(1) {
  background-color: #9b59b6;
}

.animation span:nth-child(2) {
  background-color: #3498db;
}

.animation span:nth-child(3) {
  background-color: #2ecc71;
}

.animation span:nth-child(4) {
  background-color: #f1c40f;
}

.animation span:nth-child(5) {
  background-color: #e67e22;
}

@keyframes bounce {
  from {
    top: 0;
  }
  to {
    top: -20px;
  }
}
</style>
